export interface CreateOrUpdateTableRequestData {
  id?: number
  vehicleId: string
  routeId?: number
  startTime: string
  endTime: string
}

export interface RouteInfo {
  id: number
  describe: string
}

export interface TableRequestData {
  /** 当前页码 */
  currentPage: number
  /** 查询条数 */
  size: number
  /** 查询参数：Id */
  id?: number
  /** 查询参数：车牌号 */
  vehicleId?: string
}

export interface TableData {
  id: number
  vehicleId: string
  routeId: number
  startTime: string
  endTime: string
  lastSeats: number
  departure: string
  destination: string
}

export type TableResponseData = ApiResponseData<{
  list: TableData[]
  total: number
}>
